const request = require('../utils/request')

/**
 * 执行登录
 * @param data
 * @returns {Promise<unknown>}
 */
export const login = (data) => request.post('/api/auth/login', data)

/**
 * 执行注册
 * @param data
 * @returns {Promise<unknown>}
 */
export const register = (data) => request.post('/api/auth/register', data)
